home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 6c 61 6e 67 2e 63 2b | 2b 0a 50 61 74 68 3a 20 |.lang.c+|+.Path: |
|00000020| 6e 65 77 73 2e 6e 65 72 | 2e 62 62 6e 70 6c 61 6e |news.ner|.bbnplan|
|00000030| 65 74 2e 6e 65 74 21 61 | 72 63 6f 21 75 73 65 6e |et.net!a|rco!usen|
|00000040| 65 74 0a 46 72 6f 6d 3a | 20 42 72 69 61 6e 20 4c |et.From:| Brian L|
|00000050| 65 61 63 68 20 3c 6c 61 | 73 62 66 6c 3e 0a 53 75 |each <la|sbfl>.Su|
|00000060| 62 6a 65 63 74 3a 20 52 | 65 3a 20 5b 48 4c 50 5d |bject: R|e: [HLP]|
|00000070| 20 45 61 73 79 20 50 72 | 6f 62 6c 65 6d 20 77 2f | Easy Pr|oblem w/|
|00000080| 20 43 6c 61 73 73 65 73 | 21 0a 58 2d 4e 6e 74 70 | Classes|!.X-Nntp|
|00000090| 2d 50 6f 73 74 69 6e 67 | 2d 48 6f 73 74 3a 20 31 |-Posting|-Host: 1|
|000000a0| 33 36 2e 32 32 36 2e 31 | 31 36 2e 31 0a 43 6f 6e |36.226.1|16.1.Con|
|000000b0| 74 65 6e 74 2d 54 79 70 | 65 3a 20 74 65 78 74 2f |tent-Typ|e: text/|
|000000c0| 70 6c 61 69 6e 3b 20 63 | 68 61 72 73 65 74 3d 75 |plain; c|harset=u|
|000000d0| 73 2d 61 73 63 69 69 0a | 4d 65 73 73 61 67 65 2d |s-ascii.|Message-|
|000000e0| 49 44 3a 20 3c 44 6e 75 | 79 41 30 2e 47 71 30 40 |ID: <Dnu|yA0.Gq0@|
|000000f0| 6e 65 77 73 2e 61 72 63 | 6f 2e 63 6f 6d 3e 0a 54 |news.arc|o.com>.T|
|00000100| 6f 3a 20 41 64 61 6d 2e | 4d 6f 72 72 69 73 40 6f |o: Adam.|Morris@o|
|00000110| 63 74 61 63 6f 6e 2e 63 | 6f 2e 75 6b 0a 53 65 6e |ctacon.c|o.uk.Sen|
|00000120| 64 65 72 3a 20 75 73 65 | 6e 65 74 40 6e 65 77 73 |der: use|net@news|
|00000130| 2e 61 72 63 6f 2e 63 6f | 6d 0a 43 6f 6e 74 65 6e |.arco.co|m.Conten|
|00000140| 74 2d 54 72 61 6e 73 66 | 65 72 2d 45 6e 63 6f 64 |t-Transf|er-Encod|
|00000150| 69 6e 67 3a 20 37 62 69 | 74 0a 4f 72 67 61 6e 69 |ing: 7bi|t.Organi|
|00000160| 7a 61 74 69 6f 6e 3a 20 | 41 52 43 4f 20 4f 69 6c |zation: |ARCO Oil|
|00000170| 20 25 20 47 61 73 20 43 | 6f 6d 70 61 6e 79 0a 52 | % Gas C|ompany.R|
|00000180| 65 66 65 72 65 6e 63 65 | 73 3a 20 3c 34 67 66 6e |eference|s: <4gfn|
|00000190| 33 76 24 6a 70 40 6e 65 | 77 73 2e 75 6d 62 63 2e |3v$jp@ne|ws.umbc.|
|000001a0| 65 64 75 3e 20 3c 34 68 | 36 68 65 61 24 33 76 35 |edu> <4h|6hea$3v5|
|000001b0| 40 6d 75 6c 67 61 76 65 | 2e 6f 63 74 61 63 6f 6e |@mulgave|.octacon|
|000001c0| 2e 63 6f 2e 75 6b 3e 0a | 4d 69 6d 65 2d 56 65 72 |.co.uk>.|Mime-Ver|
|000001d0| 73 69 6f 6e 3a 20 31 2e | 30 0a 44 61 74 65 3a 20 |sion: 1.|0.Date: |
|000001e0| 57 65 64 2c 20 36 20 4d | 61 72 20 31 39 39 36 20 |Wed, 6 M|ar 1996 |
|000001f0| 31 38 3a 30 36 3a 30 30 | 20 47 4d 54 0a 58 2d 4d |18:06:00| GMT.X-M|
|00000200| 61 69 6c 65 72 3a 20 4d | 6f 7a 69 6c 6c 61 20 31 |ailer: M|ozilla 1|
|00000210| 2e 31 32 20 28 58 31 31 | 3b 20 49 3b 20 48 50 2d |.12 (X11|; I; HP-|
|00000220| 55 58 20 41 2e 30 39 2e | 30 35 20 39 30 30 30 2f |UX A.09.|05 9000/|
|00000230| 37 35 35 29 0a 58 2d 55 | 72 6c 3a 20 6e 65 77 73 |755).X-U|rl: news|
|00000240| 3a 34 68 36 68 65 61 24 | 33 76 35 40 6d 75 6c 67 |:4h6hea$|3v5@mulg|
|00000250| 61 76 65 2e 6f 63 74 61 | 63 6f 6e 2e 63 6f 2e 75 |ave.octa|con.co.u|
|00000260| 6b 0a 0a 41 64 61 6d 2e | 4d 6f 72 72 69 73 40 6f |k..Adam.|Morris@o|
|00000270| 63 74 61 63 6f 6e 2e 63 | 6f 2e 75 6b 20 28 41 64 |ctacon.c|o.uk (Ad|
|00000280| 61 6d 20 4d 6f 72 72 69 | 73 29 20 77 72 6f 74 65 |am Morri|s) wrote|
|00000290| 3a 0a 5b 73 6e 69 70 5d | 0a 3e 79 6f 75 20 73 68 |:.[snip]|.>you sh|
|000002a0| 6f 75 6c 64 20 65 6e 64 | 20 75 70 20 77 69 74 68 |ould end| up with|
|000002b0| 20 0a 3e 63 6c 61 73 73 | 20 50 6f 69 6e 74 7b 0a | .>class| Point{.|
|000002c0| 3e 20 70 75 62 6c 69 63 | 3a 0a 3e 20 20 50 6f 69 |> public|:.> Poi|
|000002d0| 6e 74 28 29 3b 0a 3e 20 | 20 50 6f 69 6e 74 28 69 |nt();.> | Point(i|
|000002e0| 6e 74 20 78 2c 20 69 6e | 74 20 79 29 3b 0a 3e 0a |nt x, in|t y);.>.|
|000002f0| 3e 20 20 76 6f 69 64 20 | 73 65 74 50 6f 69 6e 74 |> void |setPoint|
|00000300| 28 69 6e 74 20 61 6e 58 | 56 61 6c 75 65 2c 20 69 |(int anX|Value, i|
|00000310| 6e 74 20 61 6e 59 56 61 | 6c 75 65 29 3b 0a 3e 20 |nt anYVa|lue);.> |
|00000320| 20 76 6f 69 64 20 73 65 | 74 58 28 69 6e 74 20 61 | void se|tX(int a|
|00000330| 6e 58 56 61 6c 75 65 29 | 3b 0a 3e 20 20 76 6f 69 |nXValue)|;.> voi|
|00000340| 64 20 73 65 74 59 28 69 | 6e 74 20 61 59 56 61 6c |d setY(i|nt aYVal|
|00000350| 75 65 29 3b 0a 3e 0a 3e | 20 20 69 6e 74 20 67 65 |ue);.>.>| int ge|
|00000360| 74 58 28 29 3b 0a 3e 20 | 20 69 6e 74 20 67 65 74 |tX();.> | int get|
|00000370| 59 28 29 3b 0a 3e 20 70 | 72 69 76 61 74 65 3a 0a |Y();.> p|rivate:.|
|00000380| 3e 20 20 69 6e 74 20 74 | 68 65 58 56 61 6c 75 65 |> int t|heXValue|
|00000390| 3b 0a 3e 20 20 69 6e 74 | 20 74 68 65 59 56 61 6c |;.> int| theYVal|
|000003a0| 75 65 3b 0a 3e 7d 3b 0a | 3e 0a 5b 73 6e 69 70 5d |ue;.>};.|>.[snip]|
|000003b0| 0a 0a 3e 41 64 61 6d 0a | 0a 41 64 61 6d 2c 0a 0a |..>Adam.|.Adam,..|
|000003c0| 47 65 74 20 68 69 6d 20 | 73 74 61 72 74 65 64 20 |Get him |started |
|000003d0| 6f 66 66 20 63 6f 72 72 | 65 63 74 6c 79 2e 20 67 |off corr|ectly. g|
|000003e0| 65 74 58 28 29 20 61 6e | 64 20 67 65 74 59 28 29 |etX() an|d getY()|
|000003f0| 20 73 68 6f 75 6c 64 20 | 62 65 20 63 6f 6e 73 74 | should |be const|
|00000400| 0a 69 6e 6c 69 6e 65 20 | 66 75 6e 63 74 69 6f 6e |.inline |function|
|00000410| 73 2c 20 69 65 3a 0a 20 | 20 69 6e 74 20 67 65 74 |s, ie:. | int get|
|00000420| 58 28 29 20 63 6f 6e 73 | 74 20 7b 20 72 65 74 75 |X() cons|t { retu|
|00000430| 72 6e 20 74 68 65 58 56 | 61 6c 75 65 3b 20 7d 0a |rn theXV|alue; }.|
|00000440| 20 20 69 6e 74 20 67 65 | 74 59 28 29 20 63 6f 6e | int ge|tY() con|
|00000450| 73 74 20 7b 20 72 65 74 | 75 72 6e 20 74 68 65 59 |st { ret|urn theY|
|00000460| 56 61 6c 75 65 3b 20 7d | 0a 0a 54 68 65 79 20 73 |Value; }|..They s|
|00000470| 68 6f 75 6c 64 20 62 65 | 20 69 6e 6c 69 6e 65 20 |hould be| inline |
|00000480| 62 65 63 61 75 73 65 20 | 74 68 65 72 65 20 69 73 |because |there is|
|00000490| 20 6e 6f 20 72 65 61 73 | 6f 6e 20 74 6f 20 69 6e | no reas|on to in|
|000004a0| 63 75 72 20 61 6e 79 20 | 65 78 74 72 61 20 66 75 |cur any |extra fu|
|000004b0| 6e 63 74 69 6f 6e 0a 63 | 61 6c 6c 20 6f 76 65 72 |nction.c|all over|
|000004c0| 68 65 61 64 2e 20 54 68 | 65 79 20 73 68 6f 75 6c |head. Th|ey shoul|
|000004d0| 64 20 62 65 20 63 6f 6e | 73 74 20 62 65 63 61 75 |d be con|st becau|
|000004e0| 73 65 20 74 68 65 79 20 | 64 6f 20 6e 6f 74 20 6d |se they |do not m|
|000004f0| 6f 64 69 66 79 20 74 68 | 65 20 6f 62 6a 65 63 74 |odify th|e object|
|00000500| 2e 0a 0a 41 73 20 61 6e | 20 61 64 64 69 74 69 6f |...As an| additio|
|00000510| 6e 61 6c 20 64 65 73 69 | 67 6e 20 6e 6f 74 65 2c |nal desi|gn note,|
|00000520| 20 49 20 66 72 65 71 75 | 65 6e 74 6c 79 20 75 73 | I frequ|ently us|
|00000530| 65 20 74 68 65 20 73 61 | 6d 65 20 66 75 6e 63 74 |e the sa|me funct|
|00000540| 69 6f 6e 20 6e 61 6d 65 | 20 66 6f 72 0a 73 65 74 |ion name| for.set|
|00000550| 74 69 6e 67 20 74 68 65 | 20 76 61 72 69 61 62 6c |ting the| variabl|
|00000560| 65 2c 20 69 65 3a 0a 0a | 20 20 20 69 6e 74 20 20 |e, ie:..| int |
|00000570| 67 65 74 58 28 29 20 63 | 6f 6e 73 74 20 7b 20 72 |getX() c|onst { r|
|00000580| 65 74 75 72 6e 20 74 68 | 65 58 56 61 6c 75 65 3b |eturn th|eXValue;|
|00000590| 20 7d 0a 20 20 20 69 6e | 74 26 20 67 65 74 58 28 | }. in|t& getX(|
|000005a0| 29 20 20 20 20 20 20 20 | 7b 20 72 65 74 75 72 6e |) |{ return|
|000005b0| 20 74 68 65 58 56 61 6c | 75 65 3b 20 7d 0a 0a 54 | theXVal|ue; }..T|
|000005c0| 68 69 73 20 69 73 20 61 | 6e 20 69 64 65 61 20 49 |his is a|n idea I|
|000005d0| 20 27 73 74 6f 6c 65 27 | 20 66 72 6f 6d 20 52 6f | 'stole'| from Ro|
|000005e0| 67 75 65 20 57 61 76 65 | 27 73 20 52 57 43 53 74 |gue Wave|'s RWCSt|
|000005f0| 72 69 6e 67 20 63 6c 61 | 73 73 2c 20 73 70 65 63 |ring cla|ss, spec|
|00000600| 69 66 69 63 61 6c 6c 79 | 20 0a 74 68 65 69 72 20 |ifically| .their |
|00000610| 73 75 62 73 63 72 69 70 | 74 20 27 28 73 69 7a 65 |subscrip|t '(size|
|00000620| 5f 74 20 69 29 27 20 6f | 70 65 72 61 74 6f 72 2e |_t i)' o|perator.|
|00000630| 20 54 68 69 73 20 61 6c | 6c 6f 77 73 20 63 6f 6e | This al|lows con|
|00000640| 73 69 73 74 61 6e 74 20 | 61 63 63 65 73 73 20 74 |sistant |access t|
|00000650| 6f 20 0a 76 61 6c 75 65 | 73 20 77 69 74 68 69 6e |o .value|s within|
|00000660| 20 61 20 63 6c 61 73 73 | 2c 20 77 68 69 6c 65 20 | a class|, while |
|00000670| 6d 61 69 6e 74 61 69 6e | 69 6e 67 20 63 6f 6e 73 |maintain|ing cons|
|00000680| 74 20 73 61 66 65 74 79 | 20 61 6e 64 20 61 6c 6c |t safety| and all|
|00000690| 20 74 68 65 20 6f 74 68 | 65 72 0a 6e 69 63 65 74 | the oth|er.nicet|
|000006a0| 69 65 73 2e 20 54 68 65 | 20 64 6f 77 6e 73 69 64 |ies. The| downsid|
|000006b0| 65 20 69 73 20 74 68 61 | 74 20 74 68 65 20 61 73 |e is tha|t the as|
|000006c0| 73 6f 63 69 61 74 65 64 | 20 76 61 72 69 61 62 6c |sociated| variabl|
|000006d0| 65 27 73 20 74 79 70 65 | 20 63 61 6e 6e 6f 74 20 |e's type| cannot |
|000006e0| 62 65 0a 63 68 61 6e 67 | 65 64 20 77 69 74 68 6f |be.chang|ed witho|
|000006f0| 75 74 20 61 66 66 65 63 | 74 69 6e 67 20 61 6c 6c |ut affec|ting all|
|00000700| 20 79 6f 75 72 20 6f 74 | 68 65 72 20 63 6f 64 65 | your ot|her code|
|00000710| 2e 20 49 74 20 76 69 6f | 6c 61 74 65 73 20 64 61 |. It vio|lates da|
|00000720| 74 61 20 68 69 64 69 6e | 67 2c 0a 79 6f 75 72 20 |ta hidin|g,.your |
|00000730| 6d 65 74 68 6f 64 20 69 | 73 20 73 75 70 65 72 69 |method i|s superi|
|00000740| 6f 72 20 69 6e 20 74 68 | 61 74 20 72 65 67 61 72 |or in th|at regar|
|00000750| 64 2e 0a 0a 0a 2d 42 72 | 69 61 6e 20 3a 2d 29 0a |d....-Br|ian :-).|
|00000760| 0a 2d 2d 20 0a 42 72 69 | 61 6e 20 46 2e 20 4c 65 |.-- .Bri|an F. Le|
|00000770| 61 63 68 0a 53 72 2e 20 | 53 79 73 74 65 6d 73 20 |ach.Sr. |Systems |
|00000780| 41 6e 61 6c 79 73 74 0a | 6c 61 73 62 66 6c 40 61 |Analyst.|lasbfl@a|
|00000790| 61 69 2e 61 72 63 6f 2e | 63 6f 6d 0a 0a 54 65 6c |ai.arco.|com..Tel|
|000007a0| 65 70 68 6f 6e 65 3a 09 | 28 39 30 37 29 20 32 36 |ephone:.|(907) 26|
|000007b0| 33 2d 34 38 36 30 0a 46 | 41 58 3a 09 09 28 39 30 |3-4860.F|AX:..(90|
|000007c0| 37 29 20 32 36 35 2d 36 | 32 39 38 0a 0a 41 52 43 |7) 265-6|298..ARC|
|000007d0| 4f 20 41 6c 61 73 6b 61 | 2c 20 49 6e 63 2e 0a 41 |O Alaska|, Inc..A|
|000007e0| 54 4f 2d 31 36 35 36 0a | 50 2e 4f 2e 20 42 6f 78 |TO-1656.|P.O. Box|
|000007f0| 20 31 30 30 33 36 30 0a | 41 6e 63 68 6f 72 61 67 | 100360.|Anchorag|
|00000800| 65 2c 20 41 4b 20 39 39 | 35 31 30 2d 30 33 36 30 |e, AK 99|510-0360|
|00000810| 0a 0a | |.. | |
+--------+-------------------------+-------------------------+--------+--------+